﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace mozhi.smarterp.Business.Sales.Deliveries
{
    public class SaleDeliveryCreateDto
    {
        [Required]
        public Guid CustomerId { get; set; }

        [Required]
        public DateTime Date {  get; set; }

        public Guid? DepartmentId { get; set; }

        public Guid? WarehouseClerkId { get; set; }

        [Required]
        public Guid CurrencyId { get; set; }

        [Required]
        public decimal ExchangeRate {  get; set; }

        public string Comment {  get; set; }

        public List<SaleDeliveryItemCreateDto> Items { get; set; }
    }

    public class SaleDeliveryItemCreateDto
    {
        [Required]
        public Guid ProductId { get; set; }

        public Guid WarehouseId { get; set; }

        public Guid? LocationId { get; set; }

        [Required]
        public Guid InventoryUnitId {  get; set; }

        /// <summary>
        /// 应发数量
        /// </summary>
        public decimal OrderedQuantity { get; set; }

        public decimal DeliveredQuantity {  get; set; }

        public decimal Price {  get; set; }

        public string BatchNumber { get; set; }

        public string SerialNumber { get; set; }

        public DateTime? ProductionDate { get; set; }

        public bool IsGift { get; set; }

        public string Remark {  get; set; }
    }
}
